import {get, ID, post, STATION} from "./common";
import {reactive} from "vue";


//根据护士站id获取内容
const getReminderList = () => {
    return get('/station/reminder/getAll', ID);
};
//根据表单内容添加定时广播
const addReminder = (form) => {
    Object.assign(form, {'stationId': STATION.id});
    return post('/station/reminder/add', form);
};
//根据内容更新
const updateReminder = (row_) => {
    return post('/station/reminder/update', row_);
}
//根据内容id进行删除
const removeReminder = (id) => {
    const param = reactive({
        'id': id
    })
    return get('/station/reminder/remove', param);
}

export {
    getReminderList,
    addReminder,
    removeReminder,
    updateReminder,
};
